import {developUrl,serverDK} from '@/views/api/api'
const TOKEN = localStorage.token;
import Vue from 'vue';
import axios from 'axios';



//试试新写法
export const apiGetServerList = (urlDiy) => {
  return axios({method : 'get',headers : {'Content-Type' : 'application/json'},
    	url : developUrl+serverDK+urlDiy,
  }).then((res) => res).catch((error) => {console.log('出错',error);});};
  

export const apiPostServerList = (urlDiy,param) => {
  return axios({method : 'post',headers : {'Content-Type' : 'application/json'},
    	url : developUrl+serverDK+urlDiy,
  data:param}).then((res) => res).catch((error) => {console.log('出错',error);});};


